package com.laowang.enums;

/**
 * Created by Administrator on 2019/1/11.
 */
public enum ResultEnum implements CodeEnum{
    SUCCESS(0,"成功"),
    PARAM_ERROR(1,"参数不正确"),
    PRODUCT_NOT_EXIT(10,"商品不存在"),
    PRODUCT_NOT_ENOUGH(11,"商品库存不足"),
    ORDER_NOT_EXIT(12,"订单不存在"),
    ORDERDETAIL_NOT_EXIT(13,"订单详情不存在"),
    ORDER_STATUS_ERROR(14,"订单状态不正确"),
    ORDER_UPDATE_ERROR(15,"修改订单失败"),
    ORDER_DETAIL_NULL(16,"该订单没有订单详情"),
    ORDER_PAY_ERROR(17,"订单支付状态不正确"),
    ORDER_CARSTACK_NOTNULL(18,"订单购物车不能为空"),
    ORDER_OWEN_NOTSAME(19,"操作人openID和传入的openID不一致"),
    CANCELORDER_NOT_EXIT(20,"取消订单时，订单不存在"),
    ORDER_CANCEL_SUCCESS(21,"订单取消成功"),
    ORDER_FINISH_SUCCESS(22,"订单完结成功"),
    PRODUCT_STATUS_ERROR(23,"商品状态不正确"),
    LOGIN_ERROR(24,"登录失败，登录信息错误"),
    LOGINOUT(25,"登出成功"),
    WX_MP_ERROR(26,"微信公众账号方面错误");
    private Integer code;
    private String message;

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
